package com.centaline.androidsalesblog.api.sale;


import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.PostDetailRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 租房和二手房详情
 * Created by Vctor on 2016/1/18.
 */
public class PostDetailApi extends SaleApi<PostDetailRo> {

    private String postId;
    private boolean isDetail = true;

    public PostDetailApi(Class<?> tag, Class<PostDetailRo> aClass, IResponseListener<PostDetailRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public void setDetail(boolean detail) {
        isDetail = detail;
    }

    @Override
    protected void setParams() {
        putParams("postId", postId);
        putParams("isDetail", isDetail);

    }

    @Override
    protected String getPath() {
        return "Post";
    }
}
